import { post } from '@/utils/request'

// 查询客户列表
export const getFriendsList = p => post(`/service-cop/b/friends/v1/list`, p)
// 查询客户分页列表
export const getFriendsPageList = p => post(`/service-cop/b/friends/v1/pageList`, p)
// 查询客户详情
export const viewFriends = p => post(`/service-cop/b/friends/v1/view/${p.id}`, p, 'get')
// 从企业微信同步群列表
export const syncFriendsListFromWx = p => post(`/service-cop/b/friends/v1/syncFriendsList`, p)

// 查询客户标签分页列表
export const getFriendsTagsPageList = p => post(`/service-cop/b/friendsTags/v1/pageList`, p)
// 查询客户标签列表
export const getFriendsTagsList = p => post(`/service-cop/b/friendsTags/v1/list`, p)
// 查询客户标签详情
export const viewFriendsTags = p => post(`/service-cop/b/friendsTags/v1/view/${p.id}`, p, 'get')
// 客户批量设置标签
export const changeTagsBatch = p => post(`/service-cop/b/friendsTags/v1/changeTagsBatch`, p)
// 添加客户标签
export const addFriendsTags = p => post(`/service-cop/b/friendsTags/v1/add`, p)
// 修改客户标签
export const modifyFriendsTags = p => post(`/service-cop/b/friendsTags/v1/modify`, p)
// 删除客户标签
export const delFriendsTags = p => post(`/service-cop/b/friendsTags/v1/del/${p.id}`, p, 'get')
// 删除客户标签
export const changeFriendsTagsStatus = p => post(`/service-cop/b/friendsTags/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
// 从企业微信同步群列表
export const syncFriendsTagsList = p => post(`/service-cop/b/friendsTags/v1/syncFriendsTagsList`, p)
// 同步客户标签到企微
export const syncFriendsTagsToWxCp = p => post(`/service-cop/b/friendsTags/v1/syncFriendsTagsToWxcp/${p.id}`, p)
